/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const ActivityRouterMap = {
  id: 135,
  path: '/activity',
  component: Layout,
  name: '活动管理',
  redirect: '/activity/list',
  meta: {title: '活动管理', icon: 'activity', power: 'activity'},
  alwaysShow: true,
  showMode: 'DEFAULT',
  children: [
    {
      id: 136,
      path: 'list',
      name: '活动列表',
      component: resolve => require(['@/views/plugins/activity/list'], resolve),
      meta: {title: '活动列表', icon: 'orderlist', power: 'activity.list'}
    }, {
      id: 136,
      path: 'details',
      name: '活动控制',
      component: resolve => require(['@/views/plugins/activity/details'], resolve),
      meta: {title: '活动控制', power: 'activity.details'},
      hidden: true
    }, {
      id: 136,
      path: 'info',
      name: '活动信息',
      component: resolve => require(['@/views/plugins/activity/info'], resolve),
      meta: {title: '活动信息', power: 'activity.info'},
      hidden: true
    }, {
      path: 'create',
      name: '创建活动',
      component: resolve => require(['@/views/plugins/activity/create'], resolve),
      meta: {title: '创建活动', power: 'activity.create'},
      hidden: true
    }, {
      id: 139,
      path: 'modify',
      name: '编辑活动',
      component: resolve => require(['@/views/plugins/activity/create'], resolve),
      meta: {title: '编辑活动', power: 'activity.modify'},
      hidden: true
    }, {
      id: 137,
      path: 'type',
      name: '活动类型',
      component: resolve => require(['@/views/plugins/activity/type'], resolve),
      meta: {title: '活动类型', icon: 'customer', power: 'activity.type'}
    }, {
      id: 138,
      path: 'comment',
      name: '活动留言',
      component: resolve => require(['@/views/plugins/activity/comment'], resolve),
      meta: {title: '活动留言', icon: 'customer', power: 'activity.comment'}
    }, {
      id: 138,
      path: 'commentDetails',
      name: '留言详情',
      component: resolve => require(['@/views/plugins/activity/commentDetails'], resolve),
      meta: {title: '留言详情', power: 'activity.commentDetails'},
      hidden: true
    }
  ]
}

export default ActivityRouterMap;
